Add hook to unattended_local