Changed the order of the appending