Added horizontal and vertical constraints.