Implement new batch functionality