Added target detection