Added localStorage stuff.