Generalized code for AA over 25 years (test)