Simplifying main