Device script