Added localStorage feature