tweaked core algorithm and UI. Kudos to Brano!