Split screen output to separate function