Wrapping the hook in the eval otherwise it is not activated