Removing HasConnection function