Removed the need for a single currentProfile global but put the profile# inside the Settings object.