Updated to use net lib.