Updated the tutorial for detection