Added functions timeoutProcess and timeoutProcessUsingId.