Added output function in canvasLab