Library and command line utilities