Added sequence revision code, unit testing