Added ID function for samples