Completed write PrintQueue code.