Added reveal template function