Using clock for smoother graphics.