Add the getDevices(Type) method.