Added Device Ready Function and alert