Modify main script to run SNA