GRATgen and GRATchk (ML source only)