Got things working for small sequences. Need to figure out what to do for larger sequences