anchor.diff:      end subroutine read_output_in_t
   
       subroutine init_output_unit(output_in, io_unit)
  +
  +        ! Initialises file if filename specified in input and
  +        ! returns the corresponding io unit.
  +        ! If not specified will just direct all output to stdout.
  +        ! If not writing to stdout will write message to stdout.
  +
  +        ! In:
  +        !   output_in: derived type containing input parameters
  +        !       related to calculation output.
  +        ! Out:
  +        !   io_unit: io unit allocated to given filename. If writing
  +        !       to stdout, set to 6.
   
           use qmc_data, only: output_in_t
           use report, only: environment_report
  
positive.code: 
      end subroutine init_output_unit
  
      subroutine end_output_unit(io_unit)
  
          ! Close calculation output file with the date and time.
  
          use report, only: write_date_time_close
  
          integer, intent(in) :: io_unit
          integer :: date_values(8)
  
          call date_and_time(VALUES=date_values)
  
          call write_date_time_close(io_unit, date_values)
  
      end subroutine end_output_unit
  
  
negative.code:     end function lua_dealloc_qmc_state
  
      subroutine read_logging_in_t(lua_state, opts, logging_in)
  
          ! Read in options associated with the logging table (only for debug builds).
  
          ! logging = {
  