Oh, mutable state how I love thee...