Using the recommended method of comparing the ancestor of the input to the plug