Removed the deprecated parts, updated the impure thing.