Budker INP specific library, only some snippets might be useful from outside.