Yury Samarin: updated network package. Testing is needed.