Shouldn't we reset the `deregFns` once in a while. It looks to me that we just keep adding stuff...

Or maybe I don't fully understand.