Added -M flag to create main only.