Changes NG structure and adds routes.