Now using call_user_func to call hooks