Change API for library