Added clear method to adapter wrapper. Code clean up.