Beginning of API Library