Can set multiple states at the same time.