Add thread support of passing file between clients