Revised while loop with instruction objects
Only decode is printing correctly