Handle old screen output and new screen output. Ugly