Merge pull request #178 from arunthirupathi/checkMetadata