anchor.diff:      %% data in the object
       ChunkValue = riakc_obj:get_value(ChunkRiakObject),
   
  +    %% this is just to be used
  +    %% in a guard later
  +    Empty = queue:is_empty(ChunkQueue),
  +
       case sets:size(NewRemaining) of
           0 ->
               case From of
  
positive.code:                     NewState = State#state{blocks_left=NewRemaining,
                                             chunk_queue=NewQueue},
                      {next_state, sending_remaining, NewState};
                  _ ->
                      ?assert(queue:is_empty(ChunkQueue)),
                      gen_fsm:reply(From, {done, ChunkValue}),
                      NewState = State#state{blocks_left=NewRemaining, from=undefined},
                      {stop, normal, NewState}
  
negative.code: waiting_chunk_request(get_next_chunk, _From, #state{value_cache=CachedValue}=State) ->
      {stop, normal, CachedValue, State}.
  
  waiting_chunks(get_next_chunk, From, #state{chunk_queue=ChunkQueue, from=PreviousFrom}=State) when PreviousFrom =:= undefined ->
      case queue:is_empty(ChunkQueue) of
          true ->
              %% we don't have a chunk ready
  