Added modbus slave check up front