Refactored the way that csv's are loaded.