Added memoization to tag call and added instance number