Working now for two programs need to change it to add system I/O, accounting info, and clocks.