Moved main to new file.