Reference resolution | Refactored: used ResolutionState instead of 1-element array