Made main wscript less confusing.