Add GetPreference and CreatePreference