     private func configureToolbarStackConstraints() {
         guard let toolbarStackConstraints = toolbarStackConstraints else { return }
         NSLayoutConstraint.activateConstraints(toolbarStackConstraints)
+    }
+    
+    private var filterConstraints: [NSLayoutConstraint]? {
+        guard let
+            leading = filter.leadingAnchor.constraintEqualToAnchor(leadingAnchor),
+            trailing = filter.trailingAnchor.constraintEqualToAnchor(trailingAnchor),
+            height = filter.heightAnchor.constraintEqualToConstant(Layout.FilterHeight)
+            else { return nil }
+        return [leading, trailing, filterTop, height]
+    }
+    
+    private var filterStackConstraints: [NSLayoutConstraint]? {
+        guard let
+            leading = filterStack.leadingAnchor.constraintEqualToAnchor(filter.leadingAnchor),
+            trailing = filterStack.trailingAnchor.constraintEqualToAnchor(filter.trailingAnchor),
+            top = filterStack.topAnchor.constraintEqualToAnchor(filter.topAnchor),
+            bottom = filterStack.bottomAnchor.constraintEqualToAnchor(filter.bottomAnchor)
+            else { return nil }
+        return [leading, trailing, top, bottom]
     }
     
     private var toolbarConstraints: [NSLayoutConstraint]? {

        let textOpacity = max(0.3, opacity)
        settings.textOpacity = textOpacity
        
        let toolbarOpacity = min(0.7, opacity * 1.5)
        toolbar.backgroundColor = settings.consoleBackColor.colorWithAlphaComponent(toolbarOpacity)
        
        let toolbarBorderOpacity = toolbarOpacity / 2
        toolbar.layer.borderColor = settings.consoleBackColor.colorWithAlphaComponent(toolbarBorderOpacity).CGColor
        toolbar.layer.borderWidth = 1.0
        
        if !lines.isEmpty {

    
    private var maxLineWidth: CGFloat = 0.0
    private var currentOffsetX = -Layout.MagicNumber
    private var topInsetSmall = Layout.MagicNumber
    private var topInsetLarge = Layout.MagicNumber + Layout.FilterHeight
    private var topContentInset = Layout.MagicNumber
    
    private var controlsActive = false {
        didSet {
            topContentInset = controlsActive ? topInsetLarge : topInsetSmall
        }
    }
    
    private var lines = [AELogLine]() {
        didSet {
