Sample function revisions