Added local storage support.