Removed separate function for getmac.