Added output functions in visual.c