Corrected a piece of copy pasted code that didn't match at all.
Added option for parsing for password on command line.