Applying constraints