Add more template functions