Changed assigning process id so it is more correct