Changed api in doc.