Changing setter methods to use property_hash and added a final flush method to push changes