Added simple router middleware.