Changed priority of constraints. Modify recipe fix in Main.