Add some functions for modbus