Bug fixes, support for local storage.