Added print_mac function