@CJ8664
Updated code to pass the type of microdata as a parameter
8cafd64