Change way of get process ID