Move middleware up.