Added possibility for closures in routes.