Updated algorithm and networking works