Added put_mac functionality