Moved start() and main() to bottom of file