Adding MAC address function