Changed code generator to send data to selected tools