Use *sources instead of sources for the function directive.