Flexible tool use is closely associated to higher mental processes such as the ability to plan actions. Now a group of cognitive biologists and comparative psychologists found out that the apes carefully weighed their options. To do so the apes considered the details such as differences in quality between the two food rewards and the functionality of the available tools in order to obtain a high quality food reward.