Add sequence support and tests