In the middle of re-write, code panics