Added the currentSample() method.