Update to validate inputs as integers.