Implemented custom function support
Implemented custom function support