Define the public API