Fixed more of the pin select code.