Takes queue for commands