Security changes and removed a lot of unnecessary old code.