Making some internal functions and variables private