Updated for Rust 2224edcfe: shift() -> remove(0)