Start on pin layouts + code improvements.