Added in davids network code