Added some more descriptive error handling