Changed socket note store to use a map