Updating the main and config files.