Added thread class + client threads