Added handling for sampling response