RF: changed the subbrick order of the output parameters
RF: cleaned up dog