Added debug option to connections