Could we see a larger portion of the code? Especially the main().