Added loading/updating functionality.