Added functionality to search for devices

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>