Tickets support

Initial support for tickets.