Added code for GUI program to access results.