Created thread-local vars for status