Connecting the wiring correctly