UPDATED scripts for network handling.