Move version check outside of fnDraw, fixes #36.