Change which function is checked for - data2str is used elsewhere