Changed localStore to return list of pairs