Rude implementation of sync thread