Got the invert switch working