Problem-solving behavior of monkeys as a function of work variables.