This method is what generates the config based on last run.