Removing unnecessary modes.