Implemented user defined functions and variables.