Finding another way to deal with redirected functions