Added supporting custom function variable.