Updated routinge to use new routine constraints.