The devices list must be of type that has 'len' function