Added changes to function definition to detect the "this" parameter from the FunctionEnter methods.