Moved package search.
Added further distance checks in ColoredTriangle.