should we add another `endCommandTimer` here? in case the foreach doesn't find any indexes?