For emulation performance, moved the history UI updating to to happen after the program is completed.