Basic architecture and control flow.