Addded MAC for logging