Part of the way to getting local storage to work