Custom adapter should work like this