Huge refactor or really broken ugly code.