Modular main, easier to read