Deal with PIDs and logs together, give control over number of log lines.