Added toggle macro to IO