Metaprogram diagonals.