Wow, some refactoring pain right there.