Implemented a better exception call that specified more accurately what went wrong.
-Jonathan