Added strong type check on the tags arguments