Changing way to make batch call.

Changing way to make batch call, according to #4.