Added method to create metadata type and inital values.