Updated with globals for this project.
Switched to using minimal-bit-array for flags.