Better arguments parsing for queue_move and queue_delete, and also bounds checking