Changed the order of the package creation so that details are first.