Made private some secondary functions.