Adds the NightMode function