Move Main to package.