Added in random MAC function call