Improved the algorihtm and code and UI to increase accuracy