Added functions to render charts and control format, as discussed