Change readState to readyState