That being said, this code makes me sad... I wish there was a cleaner way to do this. :(