Added boolean event type
Only using two threads for now