Removes unnecessary command.