Improve network library.