Adds main(). Can now be called from the CLI.