Unified Multimode solver with single mode solver