@polesye Would it be better to make this function available globally, or via state? Seems like a pretty useful function...