Can now detect invalid binary numbers.