Added substituting interpreter for functions.