Add grid-redirect functionality, for redirection on errors.