Improving GUI and algorithm.