Massive refactoring. One might say 'rewrite'