Added check type for proc to see if int or process