Added genCaptures/genNoCaptures functions