Initial draft code.