Messing around with keeping track of what files are changed in a context. Might be better as a monkey patch.