Added missing functions for smarty