Battery processing