added threading for reading devices at the same time