Added coords calculation.