Minor: whitespace after , |k, v|, here and possibly elsewhere.