Added a refresh function for devices for bug #7383.