Run main loop using simple recursion