Hmm ok, I'll refactor this to make it so that there isn't one huge if block.