Modified bulk to accept 'doc' objects.