Smarter missing input validation.

Resolves #100.