Changed _samples to protected to maintain backward compatibility.