Added magic wrapper for assignment of routes.