Move command to an integer before doing comparisons.