Connection to the terminal