Improving wirelles2wired script