Major Improvement

Added batch function.