Add ticket ID de-duplication, fixes #4