Added int validation.