Adding amplitude analysis functionality - no plotting yet