Cleaned up code
Finished pending command
Improved TicketHandler performance