Added some rendering functions