These functions can be used when creating a custom template.