Begin adding batch friend functions