Namespace all the functions and make private ones static