Rename whenReady to ready; update the algorithm