Add main loop and drawing.