Add 'main' option to modules middleware.