Implemented device auto-discovery

Change-Id: I52d6c783b8848df39f911e77e75ef13fce5025f5