Worked on ->setFunctionHook