           {initialized, inner_state} = @worker_state_entity.transfer(ref, initial_state.inner_state)
 
           if unquote(MapSet.member?(features, :inactivity_check)) do
-            state = %Noizu.SimplePool.Worker.State{initial_state| initialized: initialized, worker_ref: ref, inner_state: inner_state, last_activity: :os.system_time(:seconds)}
-            state = schedule_inactivity_check(nil, state)
-            {:ok, state}
+            state2 = %Noizu.SimplePool.Worker.State{initial_state| initialized: initialized, worker_ref: ref, inner_state: inner_state, last_activity: :os.system_time(:seconds)}
+            state3 = schedule_inactivity_check(nil, state2)
+            {:ok, state3}
           else
             {:ok, %Noizu.SimplePool.Worker.State{initial_state| initialized: initialized, worker_ref: ref, inner_state: inner_state}}
           end

                  @server.worker_terminate!(ref, nil, context)
                  {:noreply, state}
                {:wait, state} ->
                  state = schedule_migrate_shutdown(context, state)
                  {:noreply, state}
              end
            else
              @server.worker_terminate!(ref, nil, context)
              {:noreply, state}
            end
          end
          {:noreply, state}
        end # end handle_info/:activity_check

        def handle_info({:i, {:migrate_shutdown, ref}, context}, %Noizu.SimplePool.Worker.State{migrating: false} = state) do

            schedule_migrate_shutdown(context, state)
          else
            spawn fn() ->
                Process.sleep(500)
                @server.worker_terminate!(ref, nil, context)
              end
            state
