Refactored luhn.