Refixed language retrieval for tags
Changed function to retrieve the available tags.