Added next and next batch apis