Added local storage factory