Removed extra middleware hook.