Code to map device to user is now waits for deviceready.