Working on path detection.