Thanks. Very good, clean and useful script. Can this be enhanced to add lines to control the wifi chip too. I hope you plan to update this script even further.