AGMBD generation