Moved everything into "main"