Added basic hooking api