To Hug or Not to Hug

What is healthy connection and what is dysfunction? Can we connect and also ask permission to do it?