Add distanceBetween() render function
Add targetThreshold() render function