Update scripts to use two device scripts for tidiness.