Let's allow parameters in the hooks as well

Oh and let's not call execute_hooks() in the less than minimum crash time
code as this will mean it'll get's called twice in a very short period of time.