Changed getDevices() to return a list and not a collection