Removed handling for negative bases and asserted instead.