optimisations to command queue.