Spawning threads based off events=> Fixes blocking sleep bug