Modified Queue-pop direction.