Rearrange commands.