Changed visibility of update method to public