The A functionality code