Routines for 1 target analysis or all target analysis