Didn't properly implement the hook