Add localStorage support.