Added deviceready callback