Refine connection.