Fix and clean up this ugly monstrosity of a line.