Update method used for debugging