Implemented batch representation conversion.