Implemented FunctionService.update