Replaced Smarty2 with Smarty3.