Implement connection trimming leaving only best connection