Initial cut at the code.