Added get timout for deliver thread to reduce CPU load.
Removed annoying debug output.