Added upgrade commands.
Fixed list_ code.