Added support for bulk indexing (using --bulk=true option)