Started implementation of setReadyState.