Added check to make sure Path is valid before starting process.