Adapt main after renaming.