Restore localStorage functionality.