Adds localstore support.