Made some functions private that didn't need to be public