Forget about my previous comment it's not for the directory check but the process check.