Can we use HOOK for this instead of hardcoding a plugin behavior in the main agent ?