Introduce $grad variable.