Added support for writing to screen.