Add custom function support.