Added onReady callback function param