Moved external functions within the CanvasView.