Updated setState to use this.