The original main is now attached to main_wrapper