Added prototype of collection API.