Replaced sample with psample