Added apiready event