Removed old code and explained new