Added basic localstorage support