Parameter adjustment for more options in doBefore and doAfter.
Added clean command.