Generate tags in foreground.