Changed setState from private to protected.