Added command line validation and the ability to collect active sessions.