Set up program framework