Add some rudimentary validation.