Moved load process into a class.