Writing data to the screen