Sampler State logic tested and working