Separates common functions into private and public