All works now.
Ticket handling and interactive mode are still missing though.