Fixed some bugs, time-insensitive test programs worked.