Implemented flexible tauchen with func_ptr