Adding local storage support.