Added script to generate metadata