Renew function logic.