Added the reversed connection code