Fix interface according to APIs in README