Added saveProperty function