The primary factor for custody decisions is determining what is in the best interests of the child. The law does permit the child to express their preference if they are of sufficient age and maturity, which typically means in their teenage years.