Replace/add relay to input/output