Adapt main file.