Tagging functions done TODO: Implement a dynamic tagging for multiple train files