[FEATURE] Adding hook in flushByTag