General improvements. Added a way to get the hooked object.