Moved call to get_pid

Needed to define get_pid before calling it.