Added round counter logic, still buggy for the 10 digit case.