Added third paramater to device ready