Update loop for test