Added a method to the adapter