         var packet = DataPacket(blob: message, ttl: 10) // TODO encrypt
         var item = BufferItem(packet: packet, rTime: NSDate())
         self.buffer.append(item)
+        evict()
     }
     
     public func logPeers() {

    // MCSessionDelegate
    public func session(session: MCSession!, didReceiveData data: NSData!, fromPeer peerID: MCPeerID!) {
        // Called when a peer sends an NSData to us
        
        // This needs to run on the main queue
        dispatch_async(dispatch_get_main_queue()) {
            
            var msg = NSString(data: data, encoding: NSUTF8StringEncoding)
            
//            self.updateChat(msg, fromPeer: peerID)
        }
    }
    
    public func session(session: MCSession!, didStartReceivingResourceWithName resourceName: String!, fromPeer peerID: MCPeerID!, withProgress progress: NSProgress!) {

    public func decrementTTL() -> Bool {
        return --self.timeToLive > 0
    }
    
    public func equalsPacket(other : DataPacket) -> Bool {
        return self.blob.isEqualToData(other.blob)
    }
}

public class BufferItem {
