Taking mac address as parameter