Improved template and agent examples.