Implemented a local function definition service for function reporting