Add hit detection for paths