Update loop logic