Architecture writeup and diagram.