More work on sequence code