Hooks for client code completion and context initialisation