Added UserThread class.