Added "Do when ready" and make LocalStorage thread local