serviceFunction

The updated service function.