Exploring the control of perception by cognitive functions