Implement target-distance feature using attributes (closes #26)