Change Device Ready Function