Base library and tools