I just noticed you have 'isSingleSample' below. Any reason to not just rename the val and drop the def?