Oh, I should have guessed that there would be a mechanism for this already. Will fix!