Added constraints to routes