Added a ppid function