Implement using a temp file for tags generation.