Implemented some network functions.