Updated model to use sequence table