First stab at a metadata utility function