A method of determining a position of a target using a metric comprises receiving a plurality of ultrasound signals representative of ultrasound energy received from the target and, for each of a plurality of different foci, adjusting the ultrasound signals in dependence on the focus and determining a value of the metric using the adjusted ultrasound signals. The method further comprises using the determined values for the metric for the different foci to determine a position of the target.