Implemented some error handling