Renewed u_thread class. Written dirty, but works!