Add DecodeHookFunc type to make thigns easier