Add 'attach-page-last' flag to create pages at end
Add 'attach-page-last' flag to create pages at end