Added a hook for patsy.