Driver code from scratch.