Added device recognition.
Fixed bug for A-400 devices.