Added addPreferences and addAllergies functions