Added new loading sequence and also streamlined the loading code