Change sequence structure