def queue(torrentData, mode = :queue)
      return if torrentData.queued
      
      # Queue the torrent
      if mode == :unshift
        @torrentQueue.unshift torrentData
      else
        @torrentQueue.push torrentData
      end

      setFrozen torrentData, true if ! torrentData.paused
    end
def queue(torrentData, mode = :queue)
      return if torrentData.queued
      
      # Queue the torrent
      if mode == :unshift
        @torrentQueue.unshift torrentData
      else
        @torrentQueue.push torrentData
      end

      setFrozen torrentData, true if ! torrentData.paused
    end
Queue a torrent