Function seems to be tentatively working, need to convert list to string, I think.