max_epochs could be set in the template too.