Implement simple and stupid function hooking