Changed update_tags to base temp filename on tag filename