Cleanup the public API by only exposing the methods necessary.