Added code that extracts metadata from the tags. We can use this to start doing calculations.