Internalize some functions