Added priority option to modify metadata method.