Allow hooks that add completions

Issue #325