Rearranged the order of commands.