First pass of code.