Add a main entrypoint