Added getDevice lib