Added onReady callback