Massively improved data loading logic.