How to manage printer queue