- Updated resolution signal assignment to use a new method, `readResolution`, which improves clarity and maintains consistent behavior during real-time and export scenarios. - Added a private method to encapsulate logic for determining the resolution based on the current mode, enhancing code maintainability.