Moved all the needed code from MySynch.Common
Added a big timeout also on receive