New pids file. Improvements.