Base manipulation library.