Modify template to max_temp