Split Main into Main and Export