Made A_update use sufficient statistics