Added major and minor modes.