Restricted metadata code out commented (not working)