Remove if statement to prevent duplicated commands.