Initial commit from pre-written code.