Added attribute readonly for state readonly