Change the secchan "hook" mechanism to be easier to add new callbacks.