Passing "pid" back to the callback function.

When using a dedicated function, instead of an anonymous function... there's no way to know which PID you were processing/fetching.