Added statistics writer