Change the way of checking in a connection