Proper device serial id retrieving.