In the source code, there is a dedicated session for custom function.