Preserving state for code at the time of the writeup