Removed a lot of outdated code.