Refactor network library.
Add select model to network library.