Added logging to tag generator