Update host function logic