Updated library sample.