Analysis macro