Added more complex sync thread example