Add helper methods for dealing with sample values more easily.