Update to use map for method lookup before range.