Add onReady callback.