anchor.diff:  %% name as the current state name StateName is called to handle the event.
   %%--------------------------------------------------------------------
   
  -% Load a torrent at Path with Torrent
  -initializing({load_torrent, Path, Torrent, PeerId}, _From, S) ->
  -    ok = serializer:request_token(),
  -    {next_state, waiting_check, S#state{ path = Path,
  -					 torrent = Torrent,
  -					 peer_id = PeerId}}.
  +
   
   %%--------------------------------------------------------------------
   %% Function: 
  
positive.code: -behaviour(gen_fsm).
  
  %% API
  -export([start_link/0]).
  
  %% gen_fsm callbacks
  -export([init/1, handle_event/3,
  	 handle_sync_event/4, handle_info/3, terminate/3, code_change/4]).
  
  -record(state, {path = none,
  		torrent = none,
  
negative.code: %% state name. Whenever a gen_fsm receives an event sent using
  %% gen_fsm:send_event/2, the instance of this function with the same name as
  %% the current state name StateName is called to handle the event. It is also 
  %% called if a timeout occurs.
  %%--------------------------------------------------------------------
  
  % Load a torrent at Path with Torrent
  initializing({load_torrent, Path, Torrent, PeerId}, S) ->
      NewState = S#state{path = Path,
  		       torrent = Torrent,
  		       peer_id = PeerId},
      case serializer:request_token() of
  	ok ->
  	    ok = serializer:release_token(),
  	    {next_state, started, NewState};
  	wait ->
  	    {next_state, waiting_check, NewState}
      end.
  
  
  waiting_check(token, S) ->
      ok = serializer:release_token(),
      {next_state, started, S}.
  
  started(stop, S) ->
      {next_state, stopped, S}.
  
  stopped(start, S) ->
      {next_state, started, S}.
  
  
  %%--------------------------------------------------------------------
  %% Function:
  