Added very basic validation.