Add input validation; bump the version to 2.0.2