Added callbacks for samples 19, 21.