What's with the ```gsub``` here? Looks weird.