Deleted a bunch of legacy code.