Prevent calls to draw when it's not needed.