Legislating in the best interests of the child