Fully working "main"