Sampling task is working