Removed tons of legacy code.