Whilst the physical mechanism used by the eye to accommodate has been known since the mid 19th century, there have been few suggestions as to the method by which the human visual system controls the ciliary muscles. This paper proposes and explores an even function which, by building upon existing models of visual attention, could be used to model the eye's focusing mechanism. Specifically, by performing a two dimensional summation of the saliency score for each pixel in the image, it is possible to give the image an overall score. Focus can then be changed to maximise this score. It is anticipated that such an approach could be used to perform other parameter optimisation in image acquisition applications.