Added logging for trial number