Added net.sync function