Added input validation.