Added Results functions and template.