Guh. Why didn't I think of doing this before, ffs.