Tracking constantly using a held item

Ello! I've got the basis of a Frying Pan down in my food datapack, but a problem I'm encountering is tracking the player using the item. It has a consumable component set to a high value, and I can easily track if the player uses the item via advancements--but what I want is to track if they have it held down. Right now, it just checks for the moment they start using it, and the functions of the item continue even if they click off. The way the item works is by counting up a scoreboard as long as they have it held down. Once the scoreboard hits a specific value, it will "cook" the ingredient and run some functions. For this reason, I need it to only count up when the item is BEING used, not when it IS used. Is there a way I can use a predicate to detect held item usage, or will I have to do some trickery with advancements?
Continue to help post