Changed code so that the sequences are specified not in the constructor