Adding invalid_hardware function.