Replace onReady to onInit.