Added to template preprocess function