Working on a generic main