Defining constraints.