Changed analyze script to allow arbitrary arguments