Misc useful tools and utils