Use definition MAC_LEN (increased length to correct value) and reindented the code.