Initial import of working code, very simple.