Added logic to check for already checked out devices.