Added base adapter snippet