added optional take parameter for GET collection.