Added an adapter class. This will someday be moved into a diff project.