Generalize by enforcing ints only.