A framework for improving performance in complex tasks