anchor.diff:      end;
   
   handle_command({prepare, Transaction}, _Sender, #state{ partition = _Partition,
  -                                                        committed_tx=CommittedTx,
  +                                                        active_tx=ActiveTx, committed_tx=CommittedTx,
                                                           active_txs_per_key=ActiveTxPerKey, prepared_tx=PreparedTx, write_set=WriteSet}=State) ->
       TxId = Transaction#transaction.txn_id,
       lager:info("ClockSI_Vnode: got prepare message."),
  
positive.code:     {noreply, State};
  
  %% @doc handles an update operation at a Leader's partition
  handle_command({update_data_item, Txn, Key, Op}, Sender, #state{active_tx=ActiveTx, write_set=WriteSet, active_txs_per_key=ActiveTxsPerKey}=State) ->
      TxId = Txn#transaction.txn_id,
      LogRecord=#log_record{tx_id=TxId, op_type=update, op_payload={Key, Op}},
      TxId = Txn#transaction.txn_id,
  
negative.code:             {reply, {error, timeout}, State}
      end;
  
  handle_command({abort, TxId}, _Sender, #state{partition=_Partition, write_set=WriteSet}=State) ->
      Updates = ets:lookup(WriteSet, TxId),
      [{_,{Key,{_Op,_Actor}}} | _Rest] = Updates,
      LogId = log_utilities:get_logid_from_key(Key), %TODO: Modify this when get_logid_from_partition is fixed
                                                  %LogId=log_utilities:get_logid_from_partition(Partition),
      Result = floppy_rep_vnode:append(LogId, {TxId, aborted}), 
      case Result of
          {ok,_} ->
          	clean_and_notify(TxId, State),
  		lager:info("Vnode: Recieved abort. State cleaned.");     
          {error, timeout} ->
              clean_and_notify(TxId, State),
              lager:info("Abort not written to all replica of log")
              
          	%% should we reply something here?
  