Changed callback to use a function that passes OK to ready()