First version of reconciliation script