Some additional changes made to sequence to speed up run time