Adding print2screen function