Scientists had to consider how primates think in order to develop the right experiments to study them.