Test templates and fixed problems.