Added the preferences activity.