Make DataLoader a class. Fix up requires.