Add a new hook for preparing response.