Managing the print queue