PinMux: Added login. Lots of cleanup.