Add thread support, multiple player supported too