Better deleting of commands. Merge same adjacent commands.