Library API