Added type definitions
Fixed mux setting. Both MUX values now need to be written