Change filenaming.
Add pwave_pthread.