First working version of batch tagging