Simplify adding the sample ranges