Added automatic slope constraints.