Added logging - and field res can be empty