Make it smarty 3 compatible