Add method in current state to get current thread name.