Added a adapter class.