Simplify main