It wasn't a function of setting rules. It was really that I recognized I was spending time on work when I should have been spending time with them — or I was being distracted by work when I was with them to put it another way.
It was more a scheduling and time-blocking problem to be honest. Since I freelance I can work late nights weekends, etc. That doesn't mean I can't have a real schedule as well.