Improved configcommand
Fixed order of commands