Use the batch functions for the Linkscape gem.