Fixing batch function for bosco