Prepare main for Allegro