Added boolean field in runners for choosing whether to save the gradient of the log target or not