Added method for updating and getting properties.