Higher-level network functions. Work in progress.