Added threshold, help window, restart button, and live resorting.