Made a couple of functions that should not be public private.