Branching for retrieve action