Adding flag to disable the error checking since it has impact on file size and perf, some people may not want it. Leaving it on by default since it is useful in many cases.