finding the bitwidth. Got it! Let me merge this with my flag changes.