Added bus type, fixed command order, fixed lack of output file.