Code split into exported and internal parts