Added pass by reference for tags string