Added support of base_path.