Removed unsafe bit from some connection functions.