Added logging. Created two threads and an event.