Add convenience template functions