Use dynamic payload length
Move AC code to shared so we can use its constants
Better status reporting with more datA