Added GUI code for human labeling.