GUI and algorithm complete.