Convert serial to thread