Only create queue objects when needed

To save some memory...