Modified mac addr detector script