Main program functional, helpers stubbed out