Hook to process request data