This allows us to hook chosen functions and do interesting things there (in particular: reentrancy checking).