Allow pids to be set by overriding assign_pid