Added error if X or Y are used.