Coded the script to tag files.