Move global devices variable to attribute of Simulator.