Basic support of library mode