Local store working, but still has serveral bugs