Make template functions non-template functions