local_lat usage update
Use the NewPairSocket function
Consistent naming