Added gradient option to delta reducer