Adding main driver program (still a bit rough).