Splitting main into more files.