The input output and rendering functions