Misc. tools and implementations