Fixed hooks for custom routes.