Target xy

Implements #2751.