Update service function