Connecting loops
By @Vinicius