Sampling Update

Test sampling function update.