In the process of adding functions to template framework (later rules engine)