Add dimension contraint