Changed select function use in networking.