Added update method, for updating already existing instance.