Adding support for hook arguments
Minor update to automatic hook creation