Added bulk api support