Refactor some things around and add support to add bags to a ticket.