Added GetProcessId() function.