Using APIs in libraries to increase efficiency in routine tasks