Hook the method call