Altered:
- Removed all instances of the call getpid() and replaced it with getpt()