Adding priority Queue to NewSamples