Fixed issue where Alan's test program would not get the correct output and just run forever.