Removed boost thread dependency