Update of getTargetName to accomodate different target names besides YEAR