Improving logging of macs