Prepare for work with queues