Added localStorage saving.