Custom adapter