Several times I added some additional code at the end, only to spend a lot of extra time debugging why it wasn't executed in some cases.