Use the same algorithm for getting your targets.