Scripts for SWAP analyze