Refactored some things, added some things, and broke some things (parallel
linq does not work at all)