Misc utils needed for work.