Removing useless commands.