Get hooks to have proper scope.