Added GUI query submission and sorted results.