Migrating the error flags to bit masks. Everything still off by default.