Add head/3 to select whether doing retry or not