Added switch for VSync