Removed error type checks. They were failing, and there's no point in doing them.