Added a bit of validation for one of the extraction methods.