Added cmdline args and comparisons
Handled corner case where TYPE undefined