Solved template problems.