New hook system

Just made a few renditions to the hook system so it's more flexible. :)