Added start of sequence handling code