A util for things I often use in plugins