Using helpers in template functions